const homeReducer = (
  state = {
    swiperList: [],
    proList: [],
  },
  action
) => {
  const { type, payload } = action;
  switch (type) {
    case "getSwiperList":
      return { ...state, swiperList: payload };
    case "getProList":
      return { ...state, proList: payload };
    default:
      return state;
  }
  return state;
};

export default homeReducer;